package com.sunther.document.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sunther.document.util.SetTypeHandler;
import com.sunther.document.util.SetTypeHandlerString;

import java.util.Set;

/**
 * @author csb
 * @description: TODO
 * @date 2023/5/19 9:46
 */
@TableName(value = "document_term_v1",autoResultMap = true)
public class TermEntity extends BaseEntity{

    @TableId(value="id",type = IdType.AUTO)
    private Integer id;

    private String nameCh;

    private String nameEn;

    private Integer speciality;

    @TableField(exist = false)
    private String specialityText;

    @TableField(typeHandler = SetTypeHandlerString.class)
    private Set<String> projectId;

    @TableField(exist = false)
    private String projectText;

    @TableField(exist = false)
    private String projectIdUpload;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNameCh() {
        return nameCh;
    }

    public void setNameCh(String nameCh) {
        this.nameCh = nameCh;
    }

    public String getNameEn() {
        return nameEn;
    }

    public void setNameEn(String nameEn) {
        this.nameEn = nameEn;
    }

    public Integer getSpeciality() {
        return speciality;
    }

    public void setSpeciality(Integer speciality) {
        this.speciality = speciality;
    }

    public Set<String> getProjectId() {
        return projectId;
    }

    public void setProjectId(Set<String> projectId) {
        this.projectId = projectId;
    }

    public String getProjectText() {
        return projectText;
    }

    public void setProjectText(String projectText) {
        this.projectText = projectText;
    }

    public String getSpecialityText() {
        return specialityText;
    }

    public void setSpecialityText(String specialityText) {
        this.specialityText = specialityText;
    }

    public String getProjectIdUpload() {
        return projectIdUpload;
    }

    public void setProjectIdUpload(String projectIdUpload) {
        this.projectIdUpload = projectIdUpload;
    }
}
